package com.tjec.framework.config.properties;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * CAS的配置参数
 */
@Component
public class CasProperties {
    @Value("${cas.enabled:true}")
    private boolean casEnabled;

    @Value("${cas.server.hosturl}")
    private String casServerUrl;

    @Value("${cas.app.hosturl}")
    private String appServerUrl;

    @Value("${cas.app.loginurl}")
    private String appLoginUrl;

    @Value("${cas.app.logouturl}")
    private String appLogoutUrl;

    public boolean isCasEnabled() {
        return casEnabled;
    }

    public void setCasEnabled(boolean casEnabled) {
        this.casEnabled = casEnabled;
    }

    public String getCasServerUrl() {
        return casServerUrl;
    }

    public void setCasServerUrl(String casServerUrl) {
        this.casServerUrl = casServerUrl;
    }

    public String getAppServerUrl() {
        return appServerUrl;
    }

    public void setAppServerUrl(String appServerUrl) {
        this.appServerUrl = appServerUrl;
    }

    public String getAppLoginUrl() {
        return appLoginUrl;
    }

    public void setAppLoginUrl(String appLoginUrl) {
        this.appLoginUrl = appLoginUrl;
    }

    public String getAppLogoutUrl() {
        return appLogoutUrl;
    }

    public void setAppLogoutUrl(String appLogoutUrl) {
        this.appLogoutUrl = appLogoutUrl;
    }

}
